package zuoye2;

import java.util.Random;

public class hw4_daluan {
	public static void main(String[] args) {
		int [][] arr={{1,2},{3,4,5,6},{7,8,9,10}};
		
		Random r=new Random();
		for (int i=0;i<arr.length;i++){
			int count1=r.nextInt(arr.length);
			int[] num1=arr[i];
			
			for(int j=0;j<arr[i].length;j++){
				int count2=r.nextInt(arr[i].length);
				int num=arr[i][j];
				arr[i][j]=arr[i][count2];
				arr[i][count2]=num;
			}
		}
		for(int i=0;i<arr.length;i++){
			for(int j=0;j<arr[i].length;j++){
				System.out.print(arr[i][j]+" ");
			}
		}
	}
}
